Optimal. Leaf size=193 \[ -\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a}{64 d \sqrt {a+i a \tan (c+d x)}}-\frac {35 i \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{64 \sqrt {2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3487, 51, 63, 206} \[ -\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a}{64 d \sqrt {a+i a \tan (c+d x)}}-\frac {35 i \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{64 \sqrt {2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 51
Rule 63
Rule 206
Rule 3487
Rubi steps
\begin {align*} \int \cos ^4(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx &=-\frac {\left (i a^5\right ) \operatorname {Subst}\left (\int \frac {1}{(a-x)^3 (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {\left (7 i a^4\right ) \operatorname {Subst}\left (\int \frac {1}{(a-x)^2 (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{8 d}\\ &=-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}-\frac {\left (35 i a^3\right ) \operatorname {Subst}\left (\int \frac {1}{(a-x) (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{32 d}\\ &=\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}-\frac {\left (35 i a^2\right ) \operatorname {Subst}\left (\int \frac {1}{(a-x) (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{64 d}\\ &=\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a}{64 d \sqrt {a+i a \tan (c+d x)}}-\frac {(35 i a) \operatorname {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,i a \tan (c+d x)\right )}{128 d}\\ &=\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a}{64 d \sqrt {a+i a \tan (c+d x)}}-\frac {(35 i a) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{64 d}\\ &=-\frac {35 i \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{64 \sqrt {2} d}+\frac {35 i a^2}{96 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^4}{4 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {7 i a^3}{16 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a}{64 d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.46, size = 133, normalized size = 0.69 \[ -\frac {i e^{-4 i (c+d x)} \left (-88 e^{2 i (c+d x)}-41 e^{4 i (c+d x)}+45 e^{6 i (c+d x)}+6 e^{8 i (c+d x)}+105 e^{3 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \sinh ^{-1}\left (e^{i (c+d x)}\right )-8\right ) \sqrt {a+i a \tan (c+d x)}}{384 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.39, size = 274, normalized size = 1.42 \[ \frac {{\left (105 \, \sqrt {\frac {1}{2}} d \sqrt {-\frac {a}{d^{2}}} e^{\left (3 i \, d x + 3 i \, c\right )} \log \left (\frac {1}{32} \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (128 i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + 128 i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {-\frac {a}{d^{2}}} + 128 \, a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - 105 \, \sqrt {\frac {1}{2}} d \sqrt {-\frac {a}{d^{2}}} e^{\left (3 i \, d x + 3 i \, c\right )} \log \left (\frac {1}{32} \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (-128 i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - 128 i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {-\frac {a}{d^{2}}} + 128 \, a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) + \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (-6 i \, e^{\left (8 i \, d x + 8 i \, c\right )} - 45 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 41 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 88 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 8 i\right )}\right )} e^{\left (-3 i \, d x - 3 i \, c\right )}}{384 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {i \, a \tan \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.35, size = 741, normalized size = 3.84 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.85, size = 176, normalized size = 0.91 \[ \frac {i \, {\left (105 \, \sqrt {2} a^{\frac {3}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + \frac {4 \, {\left (105 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a^{2} - 350 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a^{3} + 224 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{4} + 64 \, a^{5}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} - 4 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a + 4 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{2}}\right )}}{768 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (c+d\,x\right )}^4\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )} \cos ^{4}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________